import logging

from fastapi import APIRouter
from app.schemas.testing_data import DownloadResponse, DownloadBody

router = APIRouter(prefix='/testing/data', tags=["Testing Data"])

logger = logging.getLogger("app.api.testing_data")

@router.post('/download',
             description="Downloading the testing_data path in a robot",
             response_model=DownloadResponse)
def download(download_body: DownloadBody):
    host_name = download_body.host_name
    logger.info(f"Starting to download testing_data host={host_name}")
    return DownloadResponse(
        success=True,
        saved_path="",
        size=0,
        folder_number=0
    )

